package com.example.java_chatroom.service;

import com.example.java_chatroom.mapper.UserInfoMapper;
import com.example.java_chatroom.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    public UserInfo selectByName(String username){
        return userInfoMapper.selectByName(username);
    }

    public Integer insertUser(UserInfo userInfo) {
        return userInfoMapper.insertUser(userInfo);
    }
}
